using UnityEngine;
using UnityEngine.UI;
using MyNetwork;

public class MapUI : Singleton<MapUI>
{
    public Button leaveBtn;
    
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Tab))
        {
            if (transform.GetChild(0).gameObject.activeInHierarchy)
            {
                transform.GetChild(0).gameObject.SetActive(false);
            }
            else
            {
                // 打开全屏小地图
                transform.GetChild(0).gameObject.SetActive(true);
            }
        }
    }
}
